package servlet.zj;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import dao.hrf.LoginDao;

/**
 * Servlet implementation class UpPassWod
 */
@WebServlet("/UpPassWod")
public class UpPassWod extends HttpServlet {
	private static final long serialVersionUID = 1L;
	private LoginDao one=new LoginDao();
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		int id=Integer.parseInt(request.getParameter("id"));
		String pwd=request.getParameter("pwd");
		one.up(id, pwd);
	}
}
